<?php $this->_extends('../_layouts/default_layout'); ?>
<?php $this->_block('contents'); ?>
<table width="100%" class="list_table">
<tr>
	<th>网站</th>
	<th>订单量 / 昨日订单量 </th>
	<th>注册量 / 昨日注册量 </th>
	<th>昨日IP / pv </th>
	<th>报表 </th>
</tr>
<?foreach ($shop as $s):?>
<tr>
	<th><?=$s['name']?></th>
	<td><?=$s['all_order_count']?> / <?=$s['yesterday_order_count']?></td>
	<td><?=$s['all_reg_count']?> / <?=$s['yesterday_reg_count']?></td>
	<td><?=$s['yesterday_ip']?> / <?=$s['yesterday_pv']?></td>
	<td>
		<a href="<?=url('DataCenter::Marketing/ReportByDay', array('shop_id'=>$s['id'], 'begin_date'=>date('Y-m-d', strtotime(date('Y-m-d').'-1 month')),'end_date'=>date('Y-m-d')))?>">日报表</a>
		<a href="<?=url('DataCenter::Marketing/ReportByMonth', array('shop_id'=>$s['id']))?>">月报表</a>
	</td>
</tr>
<?endforeach;?>
</table>
<?php $this->_endblock();?>